<template>
  <div class="home-recommend-tabs-wrapper">
    <template v-for="item in recommendTabsData" :key="item.id">
      <div class="tabs-item-box">
        <div class="tabs-item-img-box">
          <img :src="item.img" alt="" />
        </div>
        <div class="tabs-item-name">
          <span>{{ item.name }}</span>
        </div>
      </div>
    </template>
  </div>
  <!-- {{ recommendTabsData }} -->
</template>

<script>
export default {
  props: ["recommendTabsData"],
};
</script>

<style scope lang="scss">
.home-recommend-tabs-wrapper {
  display: flex;
  justify-content: space-around;

  align-items: center;
      height: 80vw/375 * 100;
  
  .tabs-item-box {
    width: 71.8vw/375 * 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    .tabs-item-img-box {
      width: 32vw/375 * 100;
      height: 32vw/375 * 100;
      > img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>